SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 39035: The HHMMSS informat reads time values without delimiters

DetailsCodeResultsHotfixAboutRate It

The HHMMSSw. informat reads time values with and without delimiters. It differs from the TIMEw. informat since the TIMEw. informat requires delimiters between hours, minutes, and seconds.

Beginning with SAS® 9.3, the HHMMSSw. informat reads values with/without colons/decimals as follows:

#colons    decimal?      examples       computation
0          no            1,123,12345    01:00:00, 12:30:00, 12:34:50
0          yes           1.23,123.45    00:00:01.23, 00:02:03.45
1          no            12:34          12:34:00
1          yes           12:34.56       00:12:34.56
2          no            12:34:56       12:34:56
2          yes           12:34:56.7     12:34:56.7

If there are two colons, the input is processed like the TIMEw. informat.

If there is one colon and no decimal, we logically append :00 to the value.

If there is one colon and a decimal, we logically prepend :00 to the value.

If there is no colon and no decimal, we logically append zeros to six digits, then read two digits for hour, two digits for minutes, and two digits for seconds.

If there is no colon but there is a decimal, the input is treated as the number of seconds + fractions of seconds.

To obtain the new behavior prior to SAS 9.3, use the B8601TM informat.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9 TS M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9 TS M09.3 TS1M0
Microsoft Windows 2000 Advanced Server9 TS M0
Microsoft Windows 2000 Datacenter Server9 TS M0
Microsoft Windows 2000 Server9 TS M0
Microsoft Windows 2000 Professional9 TS M0
Microsoft Windows NT Workstation9 TS M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9 TS M09.3 TS1M0
Microsoft Windows XP Professional9 TS M09.3 TS1M0
64-bit Enabled AIX9 TS M09.3 TS1M0
64-bit Enabled HP-UX9 TS M09.3 TS1M0
64-bit Enabled Solaris9 TS M09.3 TS1M0
HP-UX IPF9 TS M09.3 TS1M0
Linux9 TS M09.3 TS1M0
OpenVMS Alpha9 TS M09.3 TS1M0
Tru64 UNIX9 TS M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.